package com.thrc.borrow.utils;

import java.math.BigDecimal;

public class BaseUtil {
	/**
	 * double保留两位小树
	 * @param number
	 * @return
	 */
	public static Double doubleToFixed2(double number){
		BigDecimal  b =new BigDecimal(number);  
		double f1 =b.setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue();  
		return f1;
	}
}
